package com.hcg.distributedtx.service.hcg.impl;

import com.hcg.distributedtx.domain.User;
import com.hcg.distributedtx.mapper.hcg.HcgUserMapper;
import com.hcg.distributedtx.service.hcg.HcgUService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

//import com.hcg.distributedtx.hcg.mapper.HcgUserMapper;
//import com.hcg.distributedtx.hcg.service.HcgUService;

@Service("hcgUserService")
public class HcgUServiceImpl implements HcgUService {

    @Autowired
    private HcgUserMapper hcgUserMapper;

    @Override
    @Transactional
    public void saveUser(User user) {
//        hcUserMapper.addUser(user.getUid(),user.getNickname(),user.getName(),user.getPassword(),user.getSalt(), user.getMobile());
        hcgUserMapper.insert(user);
        int i  = 1/0;
    }

}
